.class public Lcom/waiqin365/lightapp/im/gallery/GalleryActivity;
.super Lcom/waiqin365/lightapp/base/WqBaseActivity;

# interfaces
.implements Landroid/view/View$OnClickListener;


# static fields
.field public static a:I

.field public static b:Landroid/widget/TextView;

.field public static c:Landroid/widget/TextView;

.field public static d:Landroid/widget/LinearLayout;

.field public static e:Landroid/widget/TextView;

.field private static final m:[Ljava/lang/String;


# instance fields
.field private f:Landroid/widget/TextView;

.field private g:Landroid/widget/TextView;

.field private h:Landroid/widget/ImageView;

.field private i:Landroid/widget/GridView;

.field private j:Lcom/waiqin365/lightapp/im/gallery/a/a;

.field private k:Ljava/util/ArrayList;

.field private l:Landroid/widget/RelativeLayout;


# direct methods
.method static constructor <clinit>()V
    .locals 3

    const/4 v0, 0x2

    new-array v0, v0, [Ljava/lang/String;

    const/4 v1, 0x0

    const-string/jumbo v2, "_data"

    aput-object v2, v0, v1

    const/4 v1, 0x1

    const-string/jumbo v2, "_id"

    aput-object v2, v0, v1

    sput-object v0, Lcom/waiqin365/lightapp/im/gallery/GalleryActivity;->m:[Ljava/lang/String;

    return-void
.end method

.method public constructor <init>()V
    .locals 0

    invoke-direct {p0}, Lcom/waiqin365/lightapp/base/WqBaseActivity;-><init>()V

    return-void
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/im/gallery/GalleryActivity;)Ljava/util/ArrayList;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/gallery/GalleryActivity;->k:Ljava/util/ArrayList;

    return-object v0
.end method

.method private a()V
    .locals 3

    const v0, 0x7f0c070f

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/im/gallery/GalleryActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/gallery/GalleryActivity;->h:Landroid/widget/ImageView;

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/gallery/GalleryActivity;->h:Landroid/widget/ImageView;

    invoke-virtual {v0, p0}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const v0, 0x7f0c0711

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/im/gallery/GalleryActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/gallery/GalleryActivity;->f:Landroid/widget/TextView;

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/gallery/GalleryActivity;->f:Landroid/widget/TextView;

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/im/gallery/GalleryActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    const v2, 0x7f0802fc

    invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    const v0, 0x7f0c0712

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/im/gallery/GalleryActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/gallery/GalleryActivity;->g:Landroid/widget/TextView;

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/gallery/GalleryActivity;->g:Landroid/widget/TextView;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V

    const v0, 0x7f0c07d9

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/im/gallery/GalleryActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/GridView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/gallery/GalleryActivity;->i:Landroid/widget/GridView;

    invoke-direct {p0}, Lcom/waiqin365/lightapp/im/gallery/GalleryActivity;->b()Ljava/util/ArrayList;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/gallery/GalleryActivity;->k:Ljava/util/ArrayList;

    new-instance v0, Lcom/waiqin365/lightapp/im/gallery/a/a;

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/gallery/GalleryActivity;->k:Ljava/util/ArrayList;

    invoke-direct {v0, p0, v1}, Lcom/waiqin365/lightapp/im/gallery/a/a;-><init>(Landroid/content/Context;Ljava/util/ArrayList;)V

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/gallery/GalleryActivity;->j:Lcom/waiqin365/lightapp/im/gallery/a/a;

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/gallery/GalleryActivity;->i:Landroid/widget/GridView;

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/gallery/GalleryActivity;->j:Lcom/waiqin365/lightapp/im/gallery/a/a;

    invoke-virtual {v0, v1}, Landroid/widget/GridView;->setAdapter(Landroid/widget/ListAdapter;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/gallery/GalleryActivity;->i:Landroid/widget/GridView;

    new-instance v1, Lcom/waiqin365/lightapp/im/gallery/a;

    invoke-direct {v1, p0}, Lcom/waiqin365/lightapp/im/gallery/a;-><init>(Lcom/waiqin365/lightapp/im/gallery/GalleryActivity;)V

    invoke-virtual {v0, v1}, Landroid/widget/GridView;->setOnItemClickListener(Landroid/widget/AdapterView$OnItemClickListener;)V

    const v0, 0x7f0c07db

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/im/gallery/GalleryActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    sput-object v0, Lcom/waiqin365/lightapp/im/gallery/GalleryActivity;->b:Landroid/widget/TextView;

    const v0, 0x7f0c07de

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/im/gallery/GalleryActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    sput-object v0, Lcom/waiqin365/lightapp/im/gallery/GalleryActivity;->c:Landroid/widget/TextView;

    sget-object v0, Lcom/waiqin365/lightapp/im/gallery/GalleryActivity;->b:Landroid/widget/TextView;

    invoke-virtual {v0, p0}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const v0, 0x7f0c07dc

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/im/gallery/GalleryActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    sput-object v0, Lcom/waiqin365/lightapp/im/gallery/GalleryActivity;->d:Landroid/widget/LinearLayout;

    sget-object v0, Lcom/waiqin365/lightapp/im/gallery/GalleryActivity;->d:Landroid/widget/LinearLayout;

    invoke-virtual {v0, p0}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    sget-object v0, Lcom/waiqin365/lightapp/im/gallery/GalleryActivity;->d:Landroid/widget/LinearLayout;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setEnabled(Z)V

    const v0, 0x7f0c07dd

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/im/gallery/GalleryActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    sput-object v0, Lcom/waiqin365/lightapp/im/gallery/GalleryActivity;->e:Landroid/widget/TextView;

    const v0, 0x7f0c07da

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/im/gallery/GalleryActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/RelativeLayout;

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/gallery/GalleryActivity;->l:Landroid/widget/RelativeLayout;

    return-void
.end method

.method private b()Ljava/util/ArrayList;
    .locals 6

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/im/gallery/GalleryActivity;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v1

    sget-object v2, Landroid/provider/MediaStore$Images$Media;->EXTERNAL_CONTENT_URI:Landroid/net/Uri;

    sget-object v3, Lcom/waiqin365/lightapp/im/gallery/GalleryActivity;->m:[Ljava/lang/String;

    const/4 v4, 0x0

    const-string/jumbo v5, "datetaken"

    invoke-static {v1, v2, v3, v4, v5}, Landroid/provider/MediaStore$Images$Media;->query(Landroid/content/ContentResolver;Landroid/net/Uri;[Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v1

    :cond_0
    :goto_0
    invoke-interface {v1}, Landroid/database/Cursor;->moveToNext()Z

    move-result v2

    if-eqz v2, :cond_1

    const-string/jumbo v2, "_data"

    invoke-interface {v1, v2}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v2

    invoke-interface {v1, v2}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v2

    const/4 v3, 0x1

    invoke-interface {v1, v3}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v3

    new-instance v4, Lcom/waiqin365/lightapp/im/gallery/a/k;

    invoke-direct {v4, v3, v2}, Lcom/waiqin365/lightapp/im/gallery/a/k;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    new-instance v3, Ljava/io/File;

    invoke-direct {v3, v2}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-virtual {v3}, Ljava/io/File;->exists()Z

    move-result v2

    if-eqz v2, :cond_0

    invoke-virtual {v3}, Ljava/io/File;->isFile()Z

    move-result v2

    if-eqz v2, :cond_0

    invoke-virtual {v3}, Ljava/io/File;->canRead()Z

    move-result v2

    if-eqz v2, :cond_0

    const/4 v2, 0x0

    invoke-virtual {v0, v2, v4}, Ljava/util/ArrayList;->add(ILjava/lang/Object;)V

    goto :goto_0

    :cond_1
    return-object v0
.end method

.method private c()V
    .locals 3

    new-instance v2, Ljava/util/ArrayList;

    invoke-direct {v2}, Ljava/util/ArrayList;-><init>()V

    const/4 v0, 0x0

    move v1, v0

    :goto_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/im/gallery/GalleryActivity;->k:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-ge v1, v0, :cond_1

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/gallery/GalleryActivity;->k:Ljava/util/ArrayList;

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/im/gallery/a/k;

    iget-boolean v0, v0, Lcom/waiqin365/lightapp/im/gallery/a/k;->b:Z

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/gallery/GalleryActivity;->k:Ljava/util/ArrayList;

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    invoke-virtual {v2, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    :cond_0
    add-int/lit8 v0, v1, 0x1

    move v1, v0

    goto :goto_0

    :cond_1
    new-instance v0, Landroid/content/Intent;

    invoke-direct {v0}, Landroid/content/Intent;-><init>()V

    const-string/jumbo v1, "photoItems"

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/io/Serializable;)Landroid/content/Intent;

    const/4 v1, -0x1

    invoke-virtual {p0, v1, v0}, Lcom/waiqin365/lightapp/im/gallery/GalleryActivity;->setResult(ILandroid/content/Intent;)V

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/im/gallery/GalleryActivity;->back()V

    return-void
.end method


# virtual methods
.method protected onActivityResult(IILandroid/content/Intent;)V
    .locals 8

    const/16 v7, 0x8

    const/4 v6, 0x1

    const/4 v3, 0x0

    const/4 v0, -0x1

    if-ne p2, v0, :cond_8

    const/16 v0, 0x6e

    if-ne p1, v0, :cond_2

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/gallery/GalleryActivity;->k:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->clear()V

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/gallery/GalleryActivity;->k:Ljava/util/ArrayList;

    const-string/jumbo v0, "photoItems"

    invoke-virtual {p3, v0}, Landroid/content/Intent;->getSerializableExtra(Ljava/lang/String;)Ljava/io/Serializable;

    move-result-object v0

    check-cast v0, Ljava/util/ArrayList;

    invoke-virtual {v1, v0}, Ljava/util/ArrayList;->addAll(Ljava/util/Collection;)Z

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/gallery/GalleryActivity;->j:Lcom/waiqin365/lightapp/im/gallery/a/a;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/im/gallery/a/a;->notifyDataSetChanged()V

    sget v0, Lcom/waiqin365/lightapp/im/gallery/GalleryActivity;->a:I

    if-lez v0, :cond_1

    sget-object v0, Lcom/waiqin365/lightapp/im/gallery/GalleryActivity;->e:Landroid/widget/TextView;

    invoke-virtual {v0, v3}, Landroid/widget/TextView;->setVisibility(I)V

    sget-object v0, Lcom/waiqin365/lightapp/im/gallery/GalleryActivity;->e:Landroid/widget/TextView;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    sget v2, Lcom/waiqin365/lightapp/im/gallery/GalleryActivity;->a:I

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string/jumbo v2, ""

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    sget-object v0, Lcom/waiqin365/lightapp/im/gallery/GalleryActivity;->b:Landroid/widget/TextView;

    invoke-virtual {v0, v6}, Landroid/widget/TextView;->setEnabled(Z)V

    sget-object v0, Lcom/waiqin365/lightapp/im/gallery/GalleryActivity;->c:Landroid/widget/TextView;

    invoke-virtual {v0, v6}, Landroid/widget/TextView;->setEnabled(Z)V

    sget-object v0, Lcom/waiqin365/lightapp/im/gallery/GalleryActivity;->d:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v6}, Landroid/widget/LinearLayout;->setEnabled(Z)V

    :cond_0
    :goto_0
    return-void

    :cond_1
    sget-object v0, Lcom/waiqin365/lightapp/im/gallery/GalleryActivity;->e:Landroid/widget/TextView;

    invoke-virtual {v0, v7}, Landroid/widget/TextView;->setVisibility(I)V

    sget-object v0, Lcom/waiqin365/lightapp/im/gallery/GalleryActivity;->b:Landroid/widget/TextView;

    invoke-virtual {v0, v3}, Landroid/widget/TextView;->setEnabled(Z)V

    sget-object v0, Lcom/waiqin365/lightapp/im/gallery/GalleryActivity;->c:Landroid/widget/TextView;

    invoke-virtual {v0, v3}, Landroid/widget/TextView;->setEnabled(Z)V

    sget-object v0, Lcom/waiqin365/lightapp/im/gallery/GalleryActivity;->d:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v3}, Landroid/widget/LinearLayout;->setEnabled(Z)V

    goto :goto_0

    :cond_2
    const/16 v0, 0x6f

    if-ne p1, v0, :cond_0

    const-string/jumbo v0, "photoItems"

    invoke-virtual {p3, v0}, Landroid/content/Intent;->getSerializableExtra(Ljava/lang/String;)Ljava/io/Serializable;

    move-result-object v0

    check-cast v0, Ljava/util/ArrayList;

    move v2, v3

    :goto_1
    iget-object v1, p0, Lcom/waiqin365/lightapp/im/gallery/GalleryActivity;->k:Ljava/util/ArrayList;

    invoke-virtual {v1}, Ljava/util/ArrayList;->size()I

    move-result v1

    if-ge v2, v1, :cond_6

    move v4, v3

    :goto_2
    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v1

    if-ge v4, v1, :cond_3

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/gallery/GalleryActivity;->k:Ljava/util/ArrayList;

    invoke-virtual {v1, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/waiqin365/lightapp/im/gallery/a/k;

    iput-boolean v3, v1, Lcom/waiqin365/lightapp/im/gallery/a/k;->b:Z

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/gallery/GalleryActivity;->k:Ljava/util/ArrayList;

    invoke-virtual {v1, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/waiqin365/lightapp/im/gallery/a/k;

    iput-boolean v3, v1, Lcom/waiqin365/lightapp/im/gallery/a/k;->e:Z

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/gallery/GalleryActivity;->k:Ljava/util/ArrayList;

    invoke-virtual {v1, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/waiqin365/lightapp/im/gallery/a/k;

    iget-object v5, v1, Lcom/waiqin365/lightapp/im/gallery/a/k;->a:Ljava/lang/String;

    invoke-virtual {v0, v4}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/waiqin365/lightapp/im/gallery/a/k;

    iget-object v1, v1, Lcom/waiqin365/lightapp/im/gallery/a/k;->a:Ljava/lang/String;

    invoke-virtual {v5, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_5

    invoke-virtual {v0, v4}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/waiqin365/lightapp/im/gallery/a/k;

    iget-boolean v1, v1, Lcom/waiqin365/lightapp/im/gallery/a/k;->b:Z

    if-eqz v1, :cond_5

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/gallery/GalleryActivity;->k:Ljava/util/ArrayList;

    invoke-virtual {v1, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/waiqin365/lightapp/im/gallery/a/k;

    iput-boolean v6, v1, Lcom/waiqin365/lightapp/im/gallery/a/k;->b:Z

    invoke-virtual {v0, v4}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/waiqin365/lightapp/im/gallery/a/k;

    iget-boolean v1, v1, Lcom/waiqin365/lightapp/im/gallery/a/k;->e:Z

    if-eqz v1, :cond_4

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/gallery/GalleryActivity;->k:Ljava/util/ArrayList;

    invoke-virtual {v1, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/waiqin365/lightapp/im/gallery/a/k;

    iput-boolean v6, v1, Lcom/waiqin365/lightapp/im/gallery/a/k;->e:Z

    :cond_3
    :goto_3
    add-int/lit8 v1, v2, 0x1

    move v2, v1

    goto :goto_1

    :cond_4
    iget-object v1, p0, Lcom/waiqin365/lightapp/im/gallery/GalleryActivity;->k:Ljava/util/ArrayList;

    invoke-virtual {v1, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/waiqin365/lightapp/im/gallery/a/k;

    iput-boolean v3, v1, Lcom/waiqin365/lightapp/im/gallery/a/k;->e:Z

    goto :goto_3

    :cond_5
    add-int/lit8 v1, v4, 0x1

    move v4, v1

    goto :goto_2

    :cond_6
    iget-object v0, p0, Lcom/waiqin365/lightapp/im/gallery/GalleryActivity;->j:Lcom/waiqin365/lightapp/im/gallery/a/a;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/im/gallery/a/a;->notifyDataSetChanged()V

    sget v0, Lcom/waiqin365/lightapp/im/gallery/GalleryActivity;->a:I

    if-lez v0, :cond_7

    sget-object v0, Lcom/waiqin365/lightapp/im/gallery/GalleryActivity;->b:Landroid/widget/TextView;

    invoke-virtual {v0, v6}, Landroid/widget/TextView;->setEnabled(Z)V

    sget-object v0, Lcom/waiqin365/lightapp/im/gallery/GalleryActivity;->c:Landroid/widget/TextView;

    invoke-virtual {v0, v6}, Landroid/widget/TextView;->setEnabled(Z)V

    sget-object v0, Lcom/waiqin365/lightapp/im/gallery/GalleryActivity;->d:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v6}, Landroid/widget/LinearLayout;->setEnabled(Z)V

    sget-object v0, Lcom/waiqin365/lightapp/im/gallery/GalleryActivity;->e:Landroid/widget/TextView;

    invoke-virtual {v0, v3}, Landroid/widget/TextView;->setVisibility(I)V

    sget-object v0, Lcom/waiqin365/lightapp/im/gallery/GalleryActivity;->e:Landroid/widget/TextView;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    sget v2, Lcom/waiqin365/lightapp/im/gallery/GalleryActivity;->a:I

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string/jumbo v2, ""

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto/16 :goto_0

    :cond_7
    sget-object v0, Lcom/waiqin365/lightapp/im/gallery/GalleryActivity;->b:Landroid/widget/TextView;

    invoke-virtual {v0, v3}, Landroid/widget/TextView;->setEnabled(Z)V

    sget-object v0, Lcom/waiqin365/lightapp/im/gallery/GalleryActivity;->c:Landroid/widget/TextView;

    invoke-virtual {v0, v3}, Landroid/widget/TextView;->setEnabled(Z)V

    sget-object v0, Lcom/waiqin365/lightapp/im/gallery/GalleryActivity;->d:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v3}, Landroid/widget/LinearLayout;->setEnabled(Z)V

    sget-object v0, Lcom/waiqin365/lightapp/im/gallery/GalleryActivity;->e:Landroid/widget/TextView;

    invoke-virtual {v0, v7}, Landroid/widget/TextView;->setVisibility(I)V

    goto/16 :goto_0

    :cond_8
    packed-switch p2, :pswitch_data_0

    goto/16 :goto_0

    :pswitch_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/im/gallery/GalleryActivity;->k:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->clear()V

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/gallery/GalleryActivity;->k:Ljava/util/ArrayList;

    const-string/jumbo v0, "photoItems"

    invoke-virtual {p3, v0}, Landroid/content/Intent;->getSerializableExtra(Ljava/lang/String;)Ljava/io/Serializable;

    move-result-object v0

    check-cast v0, Ljava/util/ArrayList;

    invoke-virtual {v1, v0}, Ljava/util/ArrayList;->addAll(Ljava/util/Collection;)Z

    invoke-direct {p0}, Lcom/waiqin365/lightapp/im/gallery/GalleryActivity;->c()V

    goto/16 :goto_0

    nop

    :pswitch_data_0
    .packed-switch 0x3e9
        :pswitch_0
    .end packed-switch
.end method

.method public onClick(Landroid/view/View;)V
    .locals 4

    const/4 v2, 0x0

    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v0

    sparse-switch v0, :sswitch_data_0

    :goto_0
    return-void

    :sswitch_0
    invoke-virtual {p0}, Lcom/waiqin365/lightapp/im/gallery/GalleryActivity;->back()V

    goto :goto_0

    :sswitch_1
    invoke-direct {p0}, Lcom/waiqin365/lightapp/im/gallery/GalleryActivity;->c()V

    goto :goto_0

    :sswitch_2
    new-instance v3, Ljava/util/ArrayList;

    invoke-direct {v3}, Ljava/util/ArrayList;-><init>()V

    move v1, v2

    :goto_1
    iget-object v0, p0, Lcom/waiqin365/lightapp/im/gallery/GalleryActivity;->k:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-ge v1, v0, :cond_1

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/gallery/GalleryActivity;->k:Ljava/util/ArrayList;

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/im/gallery/a/k;

    iget-boolean v0, v0, Lcom/waiqin365/lightapp/im/gallery/a/k;->b:Z

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/gallery/GalleryActivity;->k:Ljava/util/ArrayList;

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    invoke-virtual {v3, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    :cond_0
    add-int/lit8 v0, v1, 0x1

    move v1, v0

    goto :goto_1

    :cond_1
    new-instance v0, Landroid/content/Intent;

    const-class v1, Lcom/waiqin365/lightapp/im/gallery/GalleryReviewActivity;

    invoke-direct {v0, p0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string/jumbo v1, "photoItems"

    invoke-virtual {v0, v1, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/io/Serializable;)Landroid/content/Intent;

    const-string/jumbo v1, "position"

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    const/16 v1, 0x6f

    invoke-virtual {p0, v0, v1}, Lcom/waiqin365/lightapp/im/gallery/GalleryActivity;->startActivityForResult(Landroid/content/Intent;I)V

    const v0, 0x7f040022

    const v1, 0x7f040021

    invoke-virtual {p0, v0, v1}, Lcom/waiqin365/lightapp/im/gallery/GalleryActivity;->overridePendingTransition(II)V

    goto :goto_0

    :sswitch_data_0
    .sparse-switch
        0x7f0c070f -> :sswitch_0
        0x7f0c07db -> :sswitch_2
        0x7f0c07dc -> :sswitch_1
    .end sparse-switch
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 1

    invoke-super {p0, p1}, Lcom/waiqin365/lightapp/base/WqBaseActivity;->onCreate(Landroid/os/Bundle;)V

    invoke-static {p0}, Lcom/fiberhome/gaea/client/d/a;->b(Landroid/app/Activity;)V

    const v0, 0x7f030163

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/im/gallery/GalleryActivity;->setContentView(I)V

    const/4 v0, 0x0

    sput v0, Lcom/waiqin365/lightapp/im/gallery/GalleryActivity;->a:I

    invoke-direct {p0}, Lcom/waiqin365/lightapp/im/gallery/GalleryActivity;->a()V

    return-void
.end method
